# Copyright (C) 2020  phytium
# Released under the MIT license (see COPYING.MIT for the terms)

SUMMARY = "Phytium Package group for vitualization"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup

PACKAGES = "${PN}"

RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', \
    'libvirt \
    libvirt-libvirtd \
    libvirt-virsh \
    lxc \
    qemu', \
    '', d)} \
" 

RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'jailhouse', \
    'jailhouse', \
    '', d)} \
"

RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', 'docker docker-registry', '', d)}"
